/**
 * 
 */
package cz.cvut.fit.bugtrac.publicmodel.dto.metadata;

import java.util.Collection;

import javax.xml.bind.annotation.XmlElement;

import cz.cvut.fit.bugtrac.publicmodel.dto.BaseDTO;

/**
 * data transfer object for Authors (also JAXB bean)
 * 
 * @author Jarec
 * 
 */
public class AuthorsDTO extends BaseDTO {
	private static final long serialVersionUID = 1L;

	private Collection<AuthorDTO> author;

	/**
	 * @return the author
	 */
	public Collection<AuthorDTO> getAuthor() {
		return author;
	}

	/**
	 * @param author2
	 *            the author to set
	 */
	@XmlElement(name = "author")
	public void setAuthor(Collection<AuthorDTO> author2) {
		this.author = author2;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("AuthorsDTO [author=");
		builder.append(author);
		builder.append("]");
		return builder.toString();
	}

}
